package com.company.project.sys.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * BaseEntity
  * @author ZYF
 * @date 2021/5/18 11:03
 */
@Data
public class BaseEntity {
    @JSONField(serialize = false)
    @TableField(exist = false)
    @ApiModelProperty(value = "页码，默认是1")
    private int page = 1;

    @JSONField(serialize = false)
    @TableField(exist = false)
    @ApiModelProperty(value = "条数，默认是10")
    private int limit = 10;

    /**
     * 数据权限：用户id
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "数据权限")
    private List<String> createIds;
}
